package sixteen;

import java.util.Random;

import sun.nio.cs.Surrogate.Generator;

public class CompType implements Comparable<CompType> {
	
	int i; int j;
	private static int count=1;
	public CompType(int n1,int n2){
		i=n1;
		j=n2;
	}
	public String toString(){
		String result = "[i="+i+",j="+j+"]";
		if (count++ %3==0) {
			result+="\n";
		}
		return result;
	}
	
	public int compareTo(CompType o) {
		return (i<o.i?-1:(i==o.i?0:1));
	}
	
	private static Random r = new Random(47);
	
}


























